package com.etc.model;

import com.etc.model.service.Mysql1;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.awt.print.Book;

public class Test {
    public static void main(String[] args) {


        //1.创建IOC容器对象
        ApplicationContext iocContainer =
                new ClassPathXmlApplicationContext("applicationContext.xml");

        Mysql1 mysql1 = iocContainer.getBean(Mysql1.class);

        System.out.println(mysql1.getDriver()+mysql1.getUser());

    }

}